Hi,
A number of my users save documents (Word, Excel, PDF etc.) as OLE objects within modules. I'm trying to put a stop to that and get them to save their documents outside of DOORS and just link to them.
The issue I'm facing is that when I cut and paste or drag and drop an OLE object to a folder on the hard drive, it shows up as a Scrap file.
No matter what I do, I can't get it to save as the correct format. Has anyone encountered this issue? Any ideas on how to save documents back to the hard drive properly?
Thanks.
Agustine
dasilvaa - Wed Aug 26 10:48:40 EDT 2009 |
|
Re: OLE objects saved as Scrap files Peter_Albert - Wed Aug 26 11:08:51 EDT 2009
This post has been put into the DXL forum, but afaik you can't do this with DXL. While waiting for a DXL solution, you can of course open the OLE object in its application and save a copy to a folder. Although this sounds like a trivial solution, there is a subtle pitfall: when the OLE object is displayed as an icon, simply double-clicking launches the application and you can save it to file. However, if the OLE is not displayed as an icon, i.e. if e.g. an Excel Spreadsheet is displayed in the main column, then double-clicking launches the application within DOORS, with the drawback that the menu is still the DOORS menu, hence you don't have access to the "File --> Save as" menu entry. The key point is to open the Object Properties dialogue box, go to the "General" tab and double-click the OLE object in the "Object Text" field. Then the proper application is launched and you can save the file to disc.
Peter
|
|
Re: OLE objects saved as Scrap files dasilvaa - Wed Aug 26 14:05:02 EDT 2009 Peter_Albert - Wed Aug 26 11:08:51 EDT 2009
This post has been put into the DXL forum, but afaik you can't do this with DXL. While waiting for a DXL solution, you can of course open the OLE object in its application and save a copy to a folder. Although this sounds like a trivial solution, there is a subtle pitfall: when the OLE object is displayed as an icon, simply double-clicking launches the application and you can save it to file. However, if the OLE is not displayed as an icon, i.e. if e.g. an Excel Spreadsheet is displayed in the main column, then double-clicking launches the application within DOORS, with the drawback that the menu is still the DOORS menu, hence you don't have access to the "File --> Save as" menu entry. The key point is to open the Object Properties dialogue box, go to the "General" tab and double-click the OLE object in the "Object Text" field. Then the proper application is launched and you can save the file to disc.
Peter
I actually did come up with code that runs through a module and cuts and pastes all OLE objects to a folder on the hard drive, but I'm still seeing the same behaviour (documents saved as scrap files).
You can save the files the way you mentioned, but I was hoping for something a little more streamlined, i.e. a method that can be scriptable so that I can take this out of the users' hands.
However you're right in that this isn't a DXL problem per say. More of a Doors - Windows issue.
|
|